home *** CD-ROM | disk | FTP | other *** search
- Path: gemini.coi.pw.edu.pl!news-adm@io.coi.pw.edu.pl
- From: "Marek Brudka (A. Pacut)" <brudka@ia.pw.edu.pl>
- Newsgroups: comp.lang.c
- Subject: Re: fast find algorithm
- Date: Wed, 03 Apr 1996 20:54:02 +0200
- Organization: Warsaw University of Technology
- Message-ID: <3162C94A.735F@ia.pw.edu.pl>
- References: <Dp8wE6.8DG@cix.compulink.co.uk>
- NNTP-Posting-Host: bobas.ia.pw.edu.pl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-2
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 3.0b2 (X11; I; SunOS 5.4 sun4c)
-
- Stephen Etheridge wrote:
- > Does anyone have an search algoritm faster than a binary chop for the
- > following:
- > find a date from a sorted array of 1500 possible storage locations
- If you do not know anything about the statistical distribution of keys,
- you cannot improve the binary chop (assuming the same the distribution
- is uniform). But if the distribution is known, you can utilize this
- knowledge and statistically reduce the number of comparisions. I am not
- sure if this implies the speeding up of the searching, because there is
- a lot of additional work to do. Generally, for 1500 keys the ratio
- programming/(the speed of the searching) seems to be the best for
- bisectioning.
- Regards
- Marek Brudka
-